package io.zw.modules.xinpai.util;


import cn.hutool.core.lang.Console;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;

/**
 * 创建人:zhuwei
 * 邮箱:121203654@qq.com
 * 创建时间:2018-10-29 16:24
 * 高德WEb服务工具类
 */
public class GaoDeUtil {

    /**
     * 创建围栏
     * @param param
     * @return
     */
    public static JSONObject createGeofence(Map<String,Object> param){


        return null;

    }


    public static JSONObject Getdriving(JSONArray jsonArray){
        String url="https://restapi.amap.com/v4/grasproad/driving?key=bfc46b58e15af04041da2831f464d6a3";
        String res=HttpRequest.post(url).body(jsonArray.toJSONString()).execute().body();
        Console.log(res);
        return JSON.parseObject(res);
    }
}
